home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 21 / AACD 21.iso / AACD / Utilities / Ghostscript / src / gxrplane.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-01-01  |  1.9 KB  |  52 lines

  1. /* Copyright (C) 1998 Aladdin Enterprises.  All rights reserved.
  2.   
  3.   This file is part of AFPL Ghostscript.
  4.   
  5.   AFPL Ghostscript is distributed with NO WARRANTY OF ANY KIND.  No author or
  6.   distributor accepts any responsibility for the consequences of using it, or
  7.   for whether it serves any particular purpose or works at all, unless he or
  8.   she says so in writing.  Refer to the Aladdin Free Public License (the
  9.   "License") for full details.
  10.   
  11.   Every copy of AFPL Ghostscript must include a copy of the License, normally
  12.   in a plain ASCII text file named PUBLIC.  The License grants you the right
  13.   to copy, modify and redistribute AFPL Ghostscript, but only under certain
  14.   conditions described in the License.  Among other things, the License
  15.   requires that the copyright notice and this notice be preserved on all
  16.   copies.
  17. */
  18.  
  19. /*$Id: gxrplane.h,v 1.2 2000/09/19 19:00:40 lpd Exp $ */
  20. /* Definitions for planar rendering */
  21.  
  22. #ifndef gxrplane_INCLUDED
  23. #  define gxrplane_INCLUDED
  24.  
  25. #ifndef gx_device_DEFINED
  26. #  define gx_device_DEFINED
  27. typedef struct gx_device_s gx_device;
  28. #endif
  29.  
  30. /*
  31.  * Define the parameters for extracting a single plane from chunky pixels.
  32.  * This structure should be considered opaque, and should only be
  33.  * initialized with the procedure.
  34.  */
  35. typedef struct gx_render_plane_s {
  36.     int depth;
  37.     int shift;            /* bit position of l.s.b. from low end */
  38.     int index;            /* index within multi-screen halftone */
  39. } gx_render_plane_t;
  40.  
  41. /*
  42.  * Initialize a rendering plane specification for a device.  Note that it is
  43.  * up to the device to decide which bits constitute a given plane identified
  44.  * by index.  (Currently this is done with a fixed procedure, but eventually
  45.  * it will be made a property of the device somehow, perhaps in the
  46.  * color_info.)
  47.  */
  48. int gx_render_plane_init(P3(gx_render_plane_t *render_plane,
  49.                 const gx_device *dev, int index));
  50.  
  51. #endif /* gxrplane_INCLUDED */
  52.